import request from '@/utils/request';

export function getUrl_api(url) {
    return request.get(url);
}

export function signContract_api(data, params) {
    return request.postForm('/taap/service/signContract.do', data, {}, params);
}

export function restful_api(params) {
    return request.postForm('/taap/service/restful', params);
}

export function verifyCode_api(params) {
    return request.postForm('/taap/service/verifyCode.do', params);
}

export function checkCorp_api(params) {
    return request.postForm('/taap/service/checkCorp.do', params);
}

export function checkScene_api(params) {
    return request.postForm('/taap/service/checkScene.do', params);
}

export function authorize_api(data, params) {
    return request.postForm('/taap/service/authorize.do', data, {}, params);
}

export function getAccessToken_api(params) {
    return request.postForm('/taap/service/getAccessToken.do', params);
}

export function sendVerificationCode_api(params) {
    return request.postForm('/taap/service/sendVerificationCode.do', params);
}

/** 个性化定制接口 */
// 获取已签署的协议
export function getSignContractByCustomize_api(params) {
    return request.postForm('/taap/service/api/getSignContract.do', params);
}
// 获取未签署的协议
export function getWsignFileByCustomize_api(params) {
    return request.postForm('/taap/service/api/getWsignFile.do', params);
}

/** 专家签署 */
// 获取预览协议
export function expertReviewContract_api(params) {
    return request.postForm('/taap/service/expertReviewContract.do', params);
}
// 签署协议(使用签名图片签署)
export function signContractForImg_api(params) {
    return request.postForm('/taap/service/signContractForImg.do', params);
}

/** 大数据签署接口 */
// 获取预览协议
export function bigDataContract_api(params) {
    return request.postForm('/taap/service/bigData/dataContract.do', params);
}
export function bigDataSignContractForImg_api(params) {
    return request.postForm('/taap/service/bigData/signContractForImg.do', params);
}

/** 新增场景签署接口 */
// 获取预览协议
export function sceneAuthContract_api(params) {
    return request.postForm('/taap/service/sceneAuth/sceneAuthContract.do', params);
}
// 签署协议(使用签名图片签署)
export function sceneAuthSignContractForImg_api(params) {
    return request.postForm('/taap/service/sceneAuth/signContractForImg.do', params);
}
